package com.ruoyi.points.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 积分抽奖奖品对象 points_lottery_prize
 * 
 * @author nz
 * @date 2025-08-01
 */
public class PointsLotteryPrize extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 奖品ID */
    private Long id;

    /** 关联活动ID */
    @Excel(name = "关联活动ID")
    private Long activityId;

    /** 奖品名称 */
    @Excel(name = "奖品名称")
    private String name;

    /** 奖品类型 */
    @Excel(name = "奖品类型")
    private Integer type;

    /** 中奖概率 */
    @Excel(name = "中奖概率")
    private BigDecimal probability;

    /** 奖品值 */
    @Excel(name = "奖品值")
    private Long value;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long stock;

    /** 奖品图片 */
    @Excel(name = "奖品图片")
    private String imageUrl;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setProbability(BigDecimal probability) 
    {
        this.probability = probability;
    }

    public BigDecimal getProbability() 
    {
        return probability;
    }
    public void setValue(Long value) 
    {
        this.value = value;
    }

    public Long getValue() 
    {
        return value;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }
    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("activityId", getActivityId())
            .append("name", getName())
            .append("type", getType())
            .append("probability", getProbability())
            .append("value", getValue())
            .append("stock", getStock())
            .append("imageUrl", getImageUrl())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
